<?php

namespace app\demo\controller;

use think\App;
use think\facade\Db;
use think\facade\View;

class Tpl extends Base
{

    // 模板demo
    public function index() {
        $list = Db::table('mac_allow')->select()->toArray();
        var_dump($list);
//        $list = [];
//        $res = [
//            'list'  => $list,
//            'name'  => "姜海蕤",
//            'status'  => 2,
//            'age'  => 33,
//        ];
//        View::assign($res);
//        pp($res);
//        return View::fetch();
    }




}
